package com.yanqu.road.entity.player;

import com.yanqu.road.entity.DataObject;

public class UserSign extends DataObject {

    private long userId;
    /**
     * 签到时间
     */
    private long signTime;
    /**
     * 当前周期签到天数
     */
    private int signDays;
    /**
     * 签到总天数
     */
    private int totalSignDays;
    /**
     * 当日在线时长（毫秒）
     */
    private long onlineTime;
    /**
     * 当日在线时长标识（当天0点时间戳）
     */
    private long onlineTimeMark;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getSignTime() {
        return signTime;
    }

    public void setSignTime(long signTime) {
        if (this.signTime != signTime) {
            this.signTime = signTime;
            setUpdateOption();
        }
    }

    public int getSignDays() {
        return signDays;
    }

    public void setSignDays(int signDays) {
        if (this.signDays != signDays) {
            this.signDays = signDays;
            setUpdateOption();
        }

    }

    public int getTotalSignDays() {
        return totalSignDays;
    }

    public void setTotalSignDays(int totalSignDays) {
        if(this.totalSignDays != totalSignDays) {
            this.totalSignDays = totalSignDays;
            setUpdateOption();
        }
    }

    public long getOnlineTime() {
        return onlineTime;
    }

    public void setOnlineTime(long onlineTime) {
        if(this.onlineTime != onlineTime) {
            this.onlineTime = onlineTime;
            setUpdateOption();
        }
    }

    public long getOnlineTimeMark() {
        return onlineTimeMark;
    }

    public void setOnlineTimeMark(long onlineTimeMark) {
        if(this.onlineTimeMark != onlineTimeMark) {
            this.onlineTimeMark = onlineTimeMark;
            setUpdateOption();
        }
    }
}
